package com.leyou.service;

import com.leyou.domian.Item;
import com.leyou.mapper.ItemMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Transactional
@Service
public class ItemService {

    @Autowired(required = false)
    ItemMapper itemMapper;

    public Item select(Item item) {
        return itemMapper.selectByPrimaryKey(item.getId());
    }
}
